package com.herui.ota.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.herui.ota.config.ControllerNames;
import com.herui.ota.entity.AppInfo;
import com.herui.ota.entity.UserDept;
import com.herui.ota.pojo.form.NoneFilterForm;
import com.herui.ota.service.AppInfoService;
import com.herui.ota.service.UserDeptService;
import com.mlnx.common.entity.ResponseData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.mapstruct.Context;
import org.shan.spring.base.BaseController;
import org.shan.spring.base.CurdBaseController;
import org.shan.spring.base.annotations.SysLog;
import org.shan.spring.mybatis.service.ICurdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.service.TokenEndpoint;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Api(value = ControllerNames.AppInfoName + "接口", tags = {ControllerNames.AppInfoName + "接口"})
@SysLog(title = ControllerNames.AppInfoName)
@RestController
@RequestMapping("/appInfo")
@Slf4j
public class AppInfoController  extends CurdBaseController<AppInfo, AppInfo, AppInfo, NoneFilterForm> {

    @Autowired
    private AppInfoService service;

    @Override
    public ICurdService getService() {
        return service;
    }

    @Override
    public AppInfo newInstance(Integer id) {
        AppInfo userDept = new AppInfo();
        userDept.setId(id);


        return userDept;
    }

}
